home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
Projects
/
Tutorial Material
/
Zone Tutorial
/
Structure Examples
/
3. Triox
< prev
next >
Wrap
Lisp/Scheme
|
1998-10-26
|
2KB
|
92 lines
; Movement IV - OUT FROM THE EDGE for violin, sax and
; electric piano - part 2
; - using a symbol pattern to create 'zone' metres.
(setq mat1 (gen-noise-brownian 9 0.4 0.4))
(setq mat2 (gen-noise-brownian 7 0.4 0.4))
(setq mat3 (gen-noise-brownian 5 0.4 0.4))
(setq zone1a (vector-round 192 384 mat3))
(setq zone1 (vector-to-list (vector-quantize 5 16 zone1a)))
(setq vel1 (vector-to-list (vector-round 32 120 mat1)))
(setq ptch1 (vector-to-symbol a o mat1))
(setq ptch2 (vector-to-symbol a j mat2))
(setq ptch3 (vector-to-symbol a e mat3))
(create-tonality sumscale1 '(1 2 4 7 12 8 9 6 4 11))
(create-tonality sumscale2 '(1 2 5 9 4 3 9 2 1))
(create-tonality sumscale3 '(1 2 6 11 8 10 9 10))
(setq tonal
(symbols-to-tonality
symbol ptch3
transpose '((0 1 2 3 4 5 6 7 8 9)
(0 1 2 3 4 5 6 7 8)
(0 1 2 3 4 5 6 7))
mapping (activate-tonality
(sumscale1 c 3) (sumscale2 c 3) (sumscale3 c 3))
)
)
(setq tonal1
(symbols-to-tonality
symbol ptch3
transpose '((0 1 2 3 4 5 6 7 8 9)
(0 1 2 3 4 5 6 7 8)
(0 1 2 3 4 5 6 7))
mapping (activate-tonality
(sumscale1 c 4) (sumscale2 c 4) (sumscale3 c 4))
)
)
(setq tonal2
(symbols-to-tonality
symbol ptch3
transpose '((0 1 2 3 4 5 6 7 8 9)
(0 1 2 3 4 5 6 7 8)
(0 1 2 3 4 5 6 7))
mapping (activate-tonality
(sumscale1 c 5) (sumscale2 c 5) (sumscale3 c 5))
)
)
(def-symbol
piano (find-change ptch1)
sax (find-change ptch3)
violin (find-change ptch2)
)
(def-length
piano '(1/8)
sax '(1/8)
violin '(1/8)
)
(def-velocity
piano vel1
sax vel1
violin vel1
)
(def-zone
piano zone1
sax zone1
violin zone1
)
(def-tonality
piano tonal
sax tonal1
violin tonal2
)
(compile-instrument-p "ccl;output:" "trio"
piano
sax
violin
)